package com.lu.common.task.dao;

import com.lu.common.task.domain.TaskDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * @author zhanglu
 * @email 1309617271@qq.com
 * @date 2018-09-20 16:44:52
 */
@Mapper
public interface TaskDao {

	TaskDO get(Long id);
	
	List<TaskDO> list(Map<String, Object> map);

	int count(Map<String, Object> map);
	
	int save(TaskDO task);

    void saveBatch(List<TaskDO> list);
	
	int update(TaskDO task);

    void updateBatch(List<TaskDO> list);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
}
